﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020003B9 RID: 953
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class DestroyItemScRsp : IMessage<DestroyItemScRsp>, IMessage, IEquatable<DestroyItemScRsp>, IDeepCloneable<DestroyItemScRsp>, IBufferMessage
	{
		// Token: 0x17000C36 RID: 3126
		// (get) Token: 0x06002AA1 RID: 10913 RVA: 0x00075A60 File Offset: 0x00073C60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<DestroyItemScRsp> Parser
		{
			get
			{
				return DestroyItemScRsp._parser;
			}
		}

		// Token: 0x17000C37 RID: 3127
		// (get) Token: 0x06002AA2 RID: 10914 RVA: 0x00075A67 File Offset: 0x00073C67
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return DestroyItemScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000C38 RID: 3128
		// (get) Token: 0x06002AA3 RID: 10915 RVA: 0x00075A79 File Offset: 0x00073C79
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return DestroyItemScRsp.Descriptor;
			}
		}

		// Token: 0x06002AA4 RID: 10916 RVA: 0x00075A80 File Offset: 0x00073C80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DestroyItemScRsp()
		{
		}

		// Token: 0x06002AA5 RID: 10917 RVA: 0x00075A88 File Offset: 0x00073C88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DestroyItemScRsp(DestroyItemScRsp other) : this()
		{
			this.curItemCount_ = other.curItemCount_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002AA6 RID: 10918 RVA: 0x00075AB9 File Offset: 0x00073CB9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DestroyItemScRsp Clone()
		{
			return new DestroyItemScRsp(this);
		}

		// Token: 0x17000C39 RID: 3129
		// (get) Token: 0x06002AA7 RID: 10919 RVA: 0x00075AC1 File Offset: 0x00073CC1
		// (set) Token: 0x06002AA8 RID: 10920 RVA: 0x00075AC9 File Offset: 0x00073CC9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CurItemCount
		{
			get
			{
				return this.curItemCount_;
			}
			set
			{
				this.curItemCount_ = value;
			}
		}

		// Token: 0x17000C3A RID: 3130
		// (get) Token: 0x06002AA9 RID: 10921 RVA: 0x00075AD2 File Offset: 0x00073CD2
		// (set) Token: 0x06002AAA RID: 10922 RVA: 0x00075ADA File Offset: 0x00073CDA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06002AAB RID: 10923 RVA: 0x00075AE3 File Offset: 0x00073CE3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as DestroyItemScRsp);
		}

		// Token: 0x06002AAC RID: 10924 RVA: 0x00075AF1 File Offset: 0x00073CF1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(DestroyItemScRsp other)
		{
			return other != null && (other == this || (this.CurItemCount == other.CurItemCount && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002AAD RID: 10925 RVA: 0x00075B30 File Offset: 0x00073D30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.CurItemCount != 0U)
			{
				num ^= this.CurItemCount.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002AAE RID: 10926 RVA: 0x00075B88 File Offset: 0x00073D88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002AAF RID: 10927 RVA: 0x00075B90 File Offset: 0x00073D90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002AB0 RID: 10928 RVA: 0x00075B9C File Offset: 0x00073D9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.CurItemCount != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.CurItemCount);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002AB1 RID: 10929 RVA: 0x00075BF8 File Offset: 0x00073DF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.CurItemCount != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CurItemCount);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002AB2 RID: 10930 RVA: 0x00075C50 File Offset: 0x00073E50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(DestroyItemScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.CurItemCount != 0U)
			{
				this.CurItemCount = other.CurItemCount;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002AB3 RID: 10931 RVA: 0x00075CA0 File Offset: 0x00073EA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002AB4 RID: 10932 RVA: 0x00075CAC File Offset: 0x00073EAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 72U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.CurItemCount = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040010D2 RID: 4306
		private static readonly MessageParser<DestroyItemScRsp> _parser = new MessageParser<DestroyItemScRsp>(() => new DestroyItemScRsp());

		// Token: 0x040010D3 RID: 4307
		private UnknownFieldSet _unknownFields;

		// Token: 0x040010D4 RID: 4308
		public const int CurItemCountFieldNumber = 2;

		// Token: 0x040010D5 RID: 4309
		private uint curItemCount_;

		// Token: 0x040010D6 RID: 4310
		public const int RetcodeFieldNumber = 9;

		// Token: 0x040010D7 RID: 4311
		private uint retcode_;
	}
}
